import Vue from '../node_modules/vue/dist/vue.js'

import vueRouter from 'vue-Router'

Vue.use(vueRouter)

import index from './vue/index.vue'
import account from './vue/account.vue'
import login from './vue/login.vue'
import register from './vue/register.vue'

let vr = new vueRouter({
    routes: [{
            path: '/',
            component: index
        },
        {
            path: '/account',
            component: account,
            children: [{
                path: 'login',
                component: login
            }, {
                path: 'register',
                component: register
            }]
        }
    ]
})

let vm = new Vue({
    el: '.app',
    data: {

    },
    methods: {

    },
    render: c => c(index),
    router: vr
})